<?php
declare (strict_types = 1);

namespace app\service;
use app\common\MyServiceDemo;

class MyService  extends \think\Service
{

    /**
     * 注册服务
     *
     * @return mixed
     */
    public function register()
    {
    	//绑定服务到容器
        $this->app->bind('My_service',MyServiceDemo::class);
    }

    
    /**
     * 执行服务
     *
     * @return mixed
     */
    public function boot()
    {
        //
        MyServiceDemo::setVar('456');
    }
}
